<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>chatapp</title>
	<script src="js/jquery.min.js"></script>
	<script src="js/handlebars.min.js"></script>
	<script src="js/moment.min.js"></script>


	<link rel="stylesheet" href="css/style.css">
</head>
<body>
	<div id="wrapper">	
		<div id="user-container">	
			<label for="user">What's your name?</label>
			<input type="text" id="user" name="user">
			<button type="button" id="join-chat">Join Chat</button>
		</div>

		<div id="main-container" class="hidden">		
			<button type="button" id="leave-room">Leave</button>
			<div id="messages">
				
			</div>

			<div id="msg-container">
				<input type="text" id="msg" name="msg">
				<button type="button" id="send-msg">Send</button>
			</div>
		</div>

	</div>

	<script id="messages-template" type="text/x-handlebars-template">
		{{#each messages}}
		<div class="msg">
			<div class="time">{{time}}</div>
			<div class="details">
				<span class="user">{{user}}</span>: <span class="text">{{text}}</span>
			</div>
		</div>
		{{/each}}
	</script>

	<script src="js/main.js"></script>
</body>
</html>